<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>Hello MUI</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="stylesheet" href="../css/mui.min.css">
    <style>
        html,
        body {
            background-color: #efeff4;
        }

        .mui-bar ~ .mui-content .mui-fullscreen {
            top: 44px;
            height: auto;
        }

        .mui-pull-top-tips {
            position: absolute;
            top: -20px;
            left: 50%;
            margin-left: -25px;
            width: 40px;
            height: 40px;
            border-radius: 100%;
            z-index: 1;
        }

        .mui-bar ~ .mui-pull-top-tips {
            top: 24px;
        }

        .mui-pull-top-wrapper {
            width: 42px;
            height: 42px;
            display: block;
            text-align: center;
            background-color: #efeff4;
            border: 1px solid #ddd;
            border-radius: 25px;
            background-clip: padding-box;
            box-shadow: 0 4px 10px #bbb;
            overflow: hidden;
        }

        .mui-pull-top-tips.mui-transitioning {
            -webkit-transition-duration: 200ms;
            transition-duration: 200ms;
        }

        .mui-pull-top-tips .mui-pull-loading {
            /*-webkit-backface-visibility: hidden;
            -webkit-transition-duration: 400ms;
            transition-duration: 400ms;*/

            margin: 0;
        }

        .mui-pull-top-wrapper .mui-icon,
        .mui-pull-top-wrapper .mui-spinner {
            margin-top: 7px;
        }

        .mui-pull-top-wrapper .mui-icon.mui-reverse {
            /*-webkit-transform: rotate(180deg) translateZ(0);*/
        }

        .mui-pull-bottom-tips {
            text-align: center;
            background-color: #efeff4;
            font-size: 15px;
            line-height: 40px;
            color: #777;
        }

        .mui-pull-top-canvas {
            overflow: hidden;
            background-color: #fafafa;
            border-radius: 40px;
            box-shadow: 0 4px 10px #bbb;
            width: 40px;
            height: 40px;
            margin: 0 auto;
        }

        .mui-pull-top-canvas canvas {
            width: 40px;
        }

        .mui-slider-indicator.mui-segmented-control {
            background-color: #efeff4;
        }

        .mui-segmented-control.mui-scroll-wrapper .mui-scroll {
            width: 100%;
        }

        .mui-segmented-control.mui-scroll-wrapper .mui-control-item {
            width: 33.33%;
        }

        .mui-table-view-cell {
            height: 100px;
            padding: 10px;
        }

        .mui-table-view-cell:after {
            left: 0;
        }
    </style>
</head>

<body>
<div class="mui-content">
    <div id="slider" class="mui-slider mui-fullscreen">
        <div id="sliderSegmentedControl" class="mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
            <div class="mui-scroll">
                <a class="mui-control-item mui-active" href="#item1mobile">
                    推荐
                </a>
                <a class="mui-control-item" href="#item2mobile">
                    热点
                </a>
                <a class="mui-control-item" href="#item3mobile">
                    北京
                </a>
            </div>
        </div>
        <div class="mui-slider-group">
            <div id="item1mobile" class="mui-slider-item mui-control-content mui-active">
                <div id="scroll1" class="mui-scroll-wrapper">
                    <div class="mui-scroll">
                        <ul class="mui-table-view">
                            <li v-for="item in ListHot" class="mui-table-view-cell">
                                {{item.name}}
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
            <div id="item2mobile" class="mui-slider-item mui-control-content">
                <div class="mui-scroll-wrapper">
                    <div class="mui-scroll2">
                        <ul class="mui-table-view">
                            <li v-for="item in ListNew" class="mui-table-view-cell">
                                {{item.name}}
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
            <div id="item3mobile" class="mui-slider-item mui-control-content">
                <div class="mui-scroll-wrapper">
                    <div class="mui-scroll3">
                        <ul class="mui-table-view">
                            <li class="mui-table-view-cell">
                                第3个选项卡子项-1
                            </li>
                            <li class="mui-table-view-cell">
                                第3个选项卡子项-2
                            </li>
                            <li class="mui-table-view-cell">
                                第3个选项卡子项-3
                            </li>
                            <li class="mui-table-view-cell">
                                第3个选项卡子项-4
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="../js/ext/mui.min.js"></script>
<script src="../js/ext/mui.pullToRefresh.js"></script>
<script src="../js/ext/mui.pullToRefresh.material.js"></script>
<script src="../js/ext/vue.js"></script>
<script src="../js/vue-list.js"></script>
<script>
    mui.init({
        swipeBack: false,
        pullRefresh: {
            container: '#item1mobile',
            down: {
                callback: pulldownRefresh1
            }
        }
    }, {
        swipeBack: false,
        pullRefresh: {
            container: '#item2mobile',
            down: {
                callback: pulldownRefresh2
            }
        }
    }, {
        swipeBack: false,
        pullRefresh: {
            container: '#item3mobile',
            up: {
                contentrefresh: '正在加载...',
                contentnomore: "没有更多数据了",
                callback: function () {
                    var self = this;
                    setTimeout(function () {
                        listVue.initData1();
                        self.endPullDownToRefresh();
                    }, 1000);
                }
            }
        }
    });
    function pulldownRefresh1() {
        listVue.initData1();
        mui('#item1mobile').pullRefresh().endPulldownToRefresh(); //refresh completed
    }
    function pulldownRefresh2() {
        listVue.initData2();
        mui('#item2mobile').pullRefresh().endPulldownToRefresh(); //refresh completed
    }
</script>
</body>

</html>